package com.project.service;

import com.project.bean.OrderBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "orderServer",path = "/order")
public interface IOrderService {
    @RequestMapping("addOrder")
    public void addOrder(@RequestParam("userName") String userName,
                         @RequestParam("movieName") String movieName,
                         @RequestParam("seriesNum") String seriesNum,
                         @RequestParam("cinema") String cinema,
                         @RequestParam("row") String row,
                         @RequestParam("seat") Integer seat);
    @RequestMapping("getOrderAll")
    public List<OrderBean> getOrderAll(@RequestParam("userName") String userName);

}
